import Vue from 'vue'
import SvgIcon from '@/components/SvgIcon'// svg组件
import { Swipe, SwipeItem } from 'mint-ui'

// register globally
Vue.component('svg-icon', SvgIcon)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
const req = require.context('./svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)
